import request from '#/utils/requestAbort';

export async function getProvinceSpotOptions(data) {
  return request(`/market-disclosure/provinceSpotClearingInfo/showTheProvincialPowerGrid`, {
    method: 'POST',
    data,
  });
}

export const queryProvinceSpotData = async (data) => {
  return request(
    '/market-disclosure/provinceSpotClearingInfo/queryProvincialSpotPointClearingInfo',
    {
      method: 'POST',
      data,
    },
  );
};

// 查询通道名称列表
export async function getImportantChannelNameList() {
  return request(
    `/market-disclosure/importantChannelPowerTransmission/getImportantChannelNameList`,
    {
      method: 'post',
    },
  );
}

// 查询重要通道实际输电情况
export async function getTransmissionSituation(data) {
  return request(`/market-disclosure/importantChannelPowerTransmission/getTransmissionSituation`, {
    method: 'post',
    data,
  });
}
